﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DiscoveryLogic.DataServices.DataSources;

namespace DiscoveryLogic.UI.Layouts.Controls
{
    public partial class PagableStatement : UserControl
    {
        #region Public Properties

        private Statement statement;

        public Statement Statement
        {
            get
            {
                return statement;
            }
            set
            {
                statement = value;
            }
        }

        private const int transactionsPerPage = 16;

        private int currentPage = 0;

        public int CurrentPage
        {
            get
            {
                return currentPage;

            }
            set
            {
                currentPage = value;
            }
        }

        private FrameworkElement control;

        public FrameworkElement Control
        {
            get
            {
                return Root;
            }
            set
            {
                control = value;
            }
        }

        #endregion Public Properties

        #region Constructors

        public PagableStatement()
        {
            InitializeComponent();

            control = Root;

            Canvas infoTreatment = InfoTreatment;
            infoTreatment.MouseLeftButtonDown += new MouseButtonEventHandler(infoTreatment_MouseLeftButtonDown);

            infoTreatment = InfoTreatment_Copy;
            infoTreatment.MouseLeftButtonDown += new MouseButtonEventHandler(infoTreatment_MouseLeftButtonDown);

            infoTreatment = InfoTreatment_Copy1;
            infoTreatment.MouseLeftButtonDown += new MouseButtonEventHandler(infoTreatment_MouseLeftButtonDown);

            infoTreatment = InfoTreatment_Copy2;
            infoTreatment.MouseLeftButtonDown += new MouseButtonEventHandler(infoTreatment_MouseLeftButtonDown);
        }

        #endregion Constructors

        #region Public Methods

        void infoTreatment_MouseLeftButtonDown(object sender, MouseEventArgs e)
        {
            InfoTreatmentRequested(this, e);
        }

        #endregion Public Methods

        #region Public Events

        public event EventHandler InfoTreatmentRequested;

        #endregion Public Events
    }
}
